package com.sp.biz.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户与角色关联表
 * </p>
 *
 * @author 
 * @since 2025-07-16 18:47:51
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_user_role_relation")
@Schema(name = "UserRoleRelationDO对象", description = "用户与角色关联表")
public class UserRoleRelationDO {

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @Schema(name="用户id")
    @TableField("USER_ID")
    private Long userId;

    @Schema(name="角色id")
    @TableField("ROLE_ID")
    private Long roleId;

    @Schema(name="是否删除 1 是 0 否")
    @TableField("IS_DELETE")
    private String isDelete;

    @Schema(name="创建id")
    @TableField(value = "CREATOR_ID", fill = FieldFill.INSERT)
    private Long creatorId;

    @TableField(value = "UPDATER_ID", fill = FieldFill.INSERT_UPDATE)
    private Long updaterId;

    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
